import axios from "../index.js";
// 首页接口列表
export const getPortReports = (data) => {
  return axios.request({
    url: "/resultTemp01/getPortReport",
    method: "get",
    isAll: true,
    data: data
  });
};
// 首页预警任务柱状图
// export const getTaskList = (data) => {
//   return axios.request({
//     url: "/warning/warningArrivePost/getTaskList",
//     method: "get",
//     data: data
//   });
// };
// 首页资源储备图
// export const getResourceList = (data) => {
//   return axios.request({
//     url: "/emergency/warning/resourceReserve",
//     method: "post",
//     data: data
//   });
// };
// 获取单位部门树
export const getUnitTreeApi = (data) => {
  return axios.request({
    url: "/system/organization/tree",
    method: "post",
    data: data
  });
};
// 预警首页 资源储备 队伍柱状图
export const getResourceList = (data) => {
  return axios.request({
    url: "/resource/baseResourceReserve/getTeamReserve",
    method: "get",
    data: data
  });
};
// 预警首页 资源储备 车辆表格
export const getVehicle = (data) => {
  return axios.request({
    url: "/resource/baseResourceVehicle/listPage",
    method: "post",
    data: data
  });
};
// 预警首页 资源储备 物资表格
export const getSupplies = (data) => {
  return axios.request({
    url: "/resource/baseResourceSupplies/listPage",
    method: "post",
    data: data
  });
};
// 预警首页 资源储备 装备表格
export const getEquip = (data) => {
  return axios.request({
    url: "/resource/baseResourceEquip/listPage",
    method: "post",
    data: data
  });
};
// 预警首页 预警任务 柱状图
export const getTaskList = (data) => {
  return axios.request({
    url: "/warning/warningHomePageShow/showByGroup",
    method: "get",
    data: data
  });
};
// 预警首页 资源储备 柱状图
export const getResourcesByNotId = (data) => {
  return axios.request({
    url: "/resource/baseResourceReserve/getResourcesByNotId",
    method: "get",
    data: data
  });
};
